<div class="row">
	<div class="span12">
		<h1><?php echo GxHtml::encode($firm->title);?></h1>
		<ul class="breadcrumb span5">
			<li><a href="#"><?php echo GxHtml::encode($firm->rubric->name);?></a> <span class="divider">/</span></li>
			<li><a href="#"><?php echo GxHtml::encode($firm->category->name);?></a></li>
		</ul>
	</div>
	<div class="span5">
		<p>
			<?php if (0 < $firm->firmTmpl->logo_flag && '' != $firm->logo):?>
			<?php echo GxHtml::image($this->getFirmImgSrc($firm->logo, 'firms_img_logo'), 'logo', array('class' => 'firm-logo', 'align' => 'left')); ?>
			<?php endif;?>
			<?php echo GxHtml::smart_encode($firm->description);?>
		<p>
		<div class="clearfix"></div>
		<p><?php echo Yii::t('app', 'Индекс:');?> <?php echo GxHtml::smart_encode($firm->zip);?><p>
		<ul class="breadcrumb">
			<li><a href="#"><?php echo GxHtml::encode($firm->country->name);?></a> <span class="divider">/</span></li>
			<li><a href="#"><?php echo GxHtml::smart_encode($firm->region->name);?></a> <span class="divider">/</span></li>
			<li><a href="#"><?php echo GxHtml::smart_encode($firm->city->name);?></a> <span class="divider">/</span></li>
			<li class="active"><?php echo GxHtml::smart_encode($firm->address);?></li>
		</ul>
		
		<div class="row">
			<div class="span2"><?php echo Yii::t('app', 'Телефон:');?>: <i class="text-info"><?php echo GxHtml::smart_encode($firm->phone);?></i></div>
			<div class="span2"><?php echo Yii::t('app', 'Email:');?>: <i class="text-info"><?php echo GxHtml::smart_encode($firm->email);?></i></div>
		</div>
	</div>
	<div class="span7">
		<?php if (null != $firm->longitude && null != $firm->latitude) {
        $this->widget('ext.YandexMaps.YandexMap',array(
            'id'=>'map',
            'width'=>'100%',
            'height'=>400,
            'center'=>array($firm->latitude, $firm->longitude),
            'zoom' => 17,
            'type'=> 'yandex#hybrid',
            'controls' => array(
                'zoomControl' => true,
                'typeSelector' => true,
                'mapTools' => false,
                'smallZoomControl' => false,
                'miniMap' => false,
                'scaleLine' => false,
                'searchControl' => false,
                'trafficControl' => false
            ),            
            'placemark' => array(
                array(
                    'lat'=>$firm->latitude,
                    'lon'=>$firm->longitude,
                    'properties'=>array(
                        'balloonContentHeader'=>'header',
                        'balloonContent'=>'1',
                        'balloonContentFooter'=>'footer',
                    ),
                )
            ),
            /*
            'polyline' => array(
                array('lat'=>55.80,'lon'=>37.30),
                array('lat'=>55.80,'lon'=>37.40),
                array('lat'=>55.70,'lon'=>37.30),
                array('lat'=>55.70,'lon'=>37.40),
                'options'=>array(
                    'strokeWidth'=> 5 // ширина линии'
                )
            ),
            */
        ));
    }
    ?>
	</div>
</div>
<br /><br />
<div class="row">
	<?php if (0 < count($images)) : ?>
    <section class="image-gallery" style="width: 600px; margin: 0px auto;">
        <?php $this->widget('application.components.FirmsImagesGallery', array('images' => $images)); ?>
    </section>
    <?php endif;?>
</div>
<br /><br />